package tech.aistar.service;

import com.github.pagehelper.PageInfo;
import tech.aistar.entity.dynamic.ImgsStorage;
import tech.aistar.entity.dynamic.Picture;

import java.util.List;

/**
 * Created by David on 2019/9/28.
 */
public interface IPictureService {
    List<Picture> findAll();

    void addPicture(Picture picture);

    Picture getByPicId(Integer picId);

    List<Picture> findByPicType(String picType);

    PageInfo<Picture> findAll2(Integer picId, String picType, Integer pageNum, Integer pageSize);

//    List<ImgsStorage> findByImgId(Integer imgId);
    List<ImgsStorage> findImg();
    List<Picture> findByUserId(Integer Id);
    void delById(Integer id);
}
